﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;

namespace ControlCenterController
{
    /// <summary>
    /// Interaction logic for InputScriptWindow.xaml
    /// </summary>
    public partial class InputScriptWindow : Window
    {
        public InputScriptWindow()
        {
            InitializeComponent();
        }

        private List<string> scriptLines = new List<string>();
        public List<string> ScriptLines { get { return scriptLines; } }

        private void ButtonOK_Click(object sender, RoutedEventArgs e)
        {
            System.IO.StringReader reader = new System.IO.StringReader(this.TextBoxScriptLines.Text);
            string tempString;
            while (null != (tempString = reader.ReadLine()))
                this.scriptLines.Add(tempString);
            this.DialogResult = true;
        }

        private void ButtonCancel_Click(object sender, RoutedEventArgs e)
        {
            this.DialogResult = false;
        }
    }
}
